package com.shaozi.nc.web.beans;

import java.io.Serializable;

import com.shaozi.data.mq.business.base.SourceTypeConsts;
import com.shaozi.utils.common.JsonUtil;

public class PushMsgAtTimeReqBean implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2717561549191373594L;
	private String companyId;
	/**
	 * 推送对方的用户ID
	 */
	private String userId;
	/**
	 * 来源的ID，如任务模块，该值是taskId
	 */
	private String sourceId;
	/**
	 * 来源类型：1:IM消息提醒 ，3：定时写工作汇报提醒 4:设置任务提醒 ,5:上级提醒写工作汇报
	 */
	private int sourceType;
	/**
	 * 执行时间，0立即执行
	 */
	private Long atTime;
	private String title;
	private String content;
	/**
	 * 回调的URL
	 */
	private String callbackUrl;

	public PushMsgAtTimeReqBean() {
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getSourceId() {
		return sourceId;
	}

	public void setSourceId(String sourceId) {
		this.sourceId = sourceId;
	}

	public int getSourceType() {
		return sourceType;
	}

	public void setSourceType(int sourceType) {
		this.sourceType = sourceType;
	}

	public Long getAtTime() {
		return atTime;
	}

	public void setAtTime(Long atTime) {
		this.atTime = atTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCallbackUrl() {
		return callbackUrl;
	}

	public void setCallbackUrl(String callbackUrl) {
		this.callbackUrl = callbackUrl;
	}
	
	public static void main(String[] args) {
		PushMsgAtTimeReqBean bean  = new PushMsgAtTimeReqBean();
		bean.setCompanyId("100000000");
		bean.setAtTime(0l);
		bean.setContent("content");
		bean.setTitle("title");
		bean.setSourceId("1");
		bean.setSourceType(SourceTypeConsts.OA.Base);
		bean.setUserId("121212");
		System.out.println(JsonUtil.toJsonString(bean));
	}

}
